//package com.syh.bishe.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.web.SecurityFilterChain;
///**
// * @author syh 86187
// * @date 2024/6/30
// * com.syh.bishe.config
// * @description
// */
//@Configuration
//@EnableWebSecurity
//public class SecurityConfig {
//
//    @Bean
//    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
//        http
//                // 配置请求授权
//                .authorizeHttpRequests(authorizeRequests ->
//                        authorizeRequests
//                                .requestMatchers("/doc.html","/user/login", "/swagger-resources/**", "/v3/api-docs/**", "/webjars/**","/swagger-ui/**").permitAll()
//                                .anyRequest().authenticated()
//                );
//
//        return http.build();
//    }
//}
////    @Bean
////    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
////        http
////                .authorizeHttpRequests(authorizeRequests ->
////                        authorizeRequests
////                                .requestMatchers("/doc.html", "/swagger-resources/", "/v3/api-docs/", "/webjars/**").permitAll()
////                                .anyRequest().authenticated()
////                )